package com.xzh.mapper;

import com.xzh.entity.Users;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from users where user_name = #{userName}")
    Users selectUN(String username);

    void insert(Users users);

    void updatePerson(Users users);

    @Select("select * from users where user_id = #{userId}")
    Users getUser(int userId);
}
